package main

import (
	"net/http"

	"github.com/gin-gonic/gin"
)

func main() {
	r := gin.Default()
	usergroup := r.Group("/user")
	{
		usergroup.GET("/qwe", func(c *gin.Context) {
			c.JSON(http.StatusOK, gin.H{"name": "sdwd"})
		})
		usergroup.GET("/asd", func(c *gin.Context) {
			c.JSON(http.StatusOK, gin.H{"zxc": "bgh"})
		})

	}
	r.Run(":8080")
}
